// components/mail/redPackage/index.js
/**
 * 转发红包弹窗
 * @function show: 显示弹窗
 *  */
Component({
  /**
   * 组件的属性列表
   */
  properties: {

  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  ready: function(){
    this.redPackageDialog = this.selectComponent("#redPackageDialog")
  },

  /**
   * 组件的方法列表
   */
  methods: {
    
    show: function(){
      this.redPackageDialog.showDialog()
    },

    closeRedPackage: function(){
      this.triggerEvent("closeRedPackage", {})
      this.redPackageDialog.hideDialog()
    },

    tapShare: function(){
      this.triggerEvent("tapShare", {})
      this.redPackageDialog.hideDialog()
    },


  }
})
